/**
 * API服务层入口
 */
import request from './request'
import assetApi from './modules/asset'
import financeApi from './modules/finance'
import materialApi from './modules/material'
import profileApi from './modules/profile'
import todoApi from './modules/todo'
import messageApi from './modules/message'
import searchApi from './modules/search'

// 开发环境使用Mock
if (process.env.NODE_ENV === 'development') {
  require('@/mock')
}

export default {
  request,
  asset: assetApi,
  finance: financeApi,
  material: materialApi,
  profile: profileApi,
  todo: todoApi,
  message: messageApi,
  search: searchApi
} 